<!DOCTYPE html>
<!-- saved from url=(0068)http://www.hzfl.net/HZQXJ/hz/honghuahu/ShengWuShuShiDuCeLiangYi.html -->
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
		<title>生物舒适度测量仪</title>

		<link href="css/main.min.css" rel="stylesheet" type="text/css">

	</head>

	<body>
		<div class="box">
			<div class="header">
				<div class="header_left">
					<img src="css/logo.png" height="38px">
				</div>
			</div>
			<div id="maincontent">
				<div class="news_t">
					<font style="font-weight:bold">name</font>
				</div>
				<div class="news_t1"></div>
				<div id="content" class="news">
					<p align="center">
						<a id="tiaozhuan" href="sucai/imgname.jpg"><img id="img" alt="." width="100%" src="sucai/imgname.jpg"></a>
						<font style="font-size:13px" id="name">name</font>
					</p>
					<p id="">
						content
					</p>
				</div>
			</div>

			<div class="footer">
				<span> 广东省气象探测数据中心 | 版权所有</span>
			</div>
		</div>

	</body>

</html>
<script src="js/main.js" type="text/javascript">
</script>
<script type="text/javascript">
	function getpar(variable) {
		var query = window.location.search.substring(1);
		var vars = query.split("&");
		for(var i = 0; i < vars.length; i++) {
			var pair = vars[i].split("=");
			if(pair[0] == variable) {
				return pair[1];
			}
		}
		return(false);
	}

	
	formpage();

	function formpage() {
		type = getpar("type");
		detailconfig = config[type];
		html = document.getElementById("maincontent").innerHTML;
		console.log(type)
		for(var name in detailconfig) {

			while(html.indexOf(name) > -1) {
				html=html.replace(name, detailconfig[name])
			}

		}
		
		document.getElementById("maincontent").innerHTML=html;

	}
</script>